<?php

class Nutri_Model_ProductMenu extends Nutri_Model_Abstract
{
	protected $_product;
	protected $_menu;	
 
 	public function setProduct($product)
    {
    	$this->_convertToModel('Nutri_Model_Product', $product);
    	$this->_product = $product;
        return $this;
    }
 
    public function getProduct()
    {
        return $this->_product;
    }
	
    public function setMenu($menu)
    {
    	$this->_convertToModel('Nutri_Model_Menu', $menu);
    	$this->_menu = $menu;
        return $this;
    }
 
    public function getMenu()
    {
        return $this->_menu;
    }
    
	public function toArray()
    {
        return array (
            'id' => $this->getId(),
            'menu' => $this->getMenu(),
            'product' => $this->getProduct(),
        );
    }
    
 	public function getMapper()
    {
        if (null === $this->_mapper) {
            $this->setMapper('Nutri_Model_Mapper_ProductMenu');
        }
        return $this->_mapper;
    }
}